package icu.groot.alan.service;

import icu.groot.alan.entity.Department;
import icu.groot.alan.entity.OneselfUser;
import icu.groot.alan.entity.Paging;
import icu.groot.alan.entity.TokenEntity;
import icu.groot.alan.servlet.department.DepList;
import icu.groot.alan.util.R;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UserService {
    R login(String code, String password);

    OneselfUser oneself(TokenEntity tokenEntity);

    List<String> getDepartmentByCode(int code);

    void paging(Paging<OneselfUser> paging);

    R add(String name, String gender, String birthDate, String jobTitle, String education, String degree, String qq, String email, String introduction, String departmentId);

    R deleted(HttpServletRequest req, HttpServletResponse resp, String codes);

    R getUserById(String code);

    R updateUserByCode(String code, String name, String gender, String birthDate, String jobTitle, String education, String degree, String qq, String email, String introduction, String departmentId, String password);
}
